// 找回密码时的验证操作
import hyRequest from '@/service'

export const reqVerifyAccount = (account: string) => {
  return hyRequest.post({
    url: `/user/verifyAccount/${account}`
  })
}

// 验证验证码
// {"data": "string","code": "string","account": "string"}
export const reqVerifyCode = (data: any) => {
  return hyRequest.post({
    url: '/user/verifyCode',
    data,
    isShowMessage: true
  })
}

// 重置密码
// 参数说明: {password: string, confirmPassword: string, data: string} 将这个对象转成JSON对象再加密
export const reqResetPwd = (encryptStr: string) => {
  return hyRequest.post({
    url: '/user/retrievePassword',
    data: { encryptStr },
    isShowMessage: true
  })
}
